<%= error_messages_for 'site' %>

<script language="javascript" type="text/javascript">
    tinyMCE.init({
        mode : "exact",
        elements : "newpage_description",
        theme: "advanced",
        plugins: "paste",
        auto_cleanup_word: "true",
        content_css : "/stylesheets/tinymce.css",
        theme_advanced_toolbar_align: "left",
        theme_advanced_buttons1: "formatselect,bold,italic,forecolor,link,unlink,image,separator,bullist,numlist,separator,justifyleft,justifycenter",
        theme_advanced_buttons2: "",
        theme_advanced_buttons3: "",
        theme_advanced_toolbar_location: "top",
        extended_valid_elements: "font[size|color|face]",
        external_image_list_url: "<%= url_for :controller => 'site', :action => 'images', :site_title => @site %>" 
    });
    tinyMCE.init({
        mode : "exact",
        elements : "newpage_margin",
        theme: "advanced",
        plugins: "paste",
        auto_cleanup_word: "true",
        content_css : "/stylesheets/tinymce.css",
        theme_advanced_toolbar_align: "left",
        theme_advanced_buttons1: "bold,italic,forecolor,link,unlink,image,justifyleft,justifycenter",
        theme_advanced_buttons2: "",
        theme_advanced_buttons3: "",
        theme_advanced_toolbar_location: "top",
        extended_valid_elements: "font[size|color|face]",
        external_image_list_url: "<%= url_for :controller => 'site', :action => 'images', :site_title => @site %>" 
    });
</script>

<div id="margin">
<label for="newpage_margin">Margin</label><br/>
<%= text_area 'newpage', 'margin', "cols" => "20", "rows" => "19"  %>
</div>

<div id="main">
<label for="newpage_title">Title</label><br/>
<%= text_field 'newpage', 'title'  %><br><br>

<p><label for="newpage_description">Description</label><br/>
<%= text_area 'newpage', 'description', "cols" => "40", "rows" => "15"  %></p>
</div>